<html>
<head>
	<title>Customer View/Update</title>
</head>

<body>
	<h1><?=$action?> Customer</h1>
	
	<?=form_open('customers/save')?>
		<?='First Name:'.form_input($ffirstname,$result->first_name).br()?>
		<?='Last Name:'.form_input($flastname,$result->last_name).br()?>
		<?='Middle Initial:'.form_input($fmiddle,$result->middle_initial).br()?>
		
		<?='DOB'.br() ?>
		<?=form_input($fmonth,$result->month).' '.form_input($fday,$result->day).' '.form_input($fyear,$result->year).br()?>
		
		<?='Gender : '.form_dropdown($fgender['name'],$fgender['options'],$fgender['select']).br()?>
		<?='Race : '.form_dropdown($frace['name'],$frace['options'],$frace['select']).br()?>
		<?='Home Address:'.form_input('home_address',$result->home_address).br()?>
		<?='City : '.form_dropdown($fcity['name'],$fcity['options'],$fcity['select']).br()?>
		<?='State : '.form_dropdown($fstate['name'],$fstate['options'],$fstate['select']).br()?>
		<?='Home Phone:'.form_input($fphone,$result->home_phone).br()?>
		<?='Work Name:'.form_input($fworkname,$result->work_name).br()?>
		<?='Work Phone:'.form_input($fworkphone,$result->work_phone).br()?>
		<?='Photo Id Number:'.form_input($fphotoidnumber,$result->photo_id_number).br()?>
		<?='Photo Id Type:'.form_input($fphotoidtype,$result->photo_id_type).br()?>
		<?='Photo Id State:'.form_input($fphotoidstate,$result->photo_id_state).br()?>
		<?='Height:'.form_input($fheight,$result->height).br()?>
		<?='Weight:'.form_input($fweight,$result->weight).br()?>
		<?='Eye Color : '.form_dropdown($feyecolor['name'],$feyecolor['options'],$feyecolor['select']).br()?>
		<?='Hair Color : '.form_dropdown($fhaircolor['name'],$fhaircolor['options'],$fhaircolor['select']).br()?>
		<?='Notes:'.form_textarea($fnote,$result->customer_note).br()?>
		<?=form_hidden('customer_id',$result->customer_id).br()?>
		
		<input type="submit" value="<?=$action?>" name="<?=$action?>"<br />
	</form>
	
	
</body>

</html>


